import java.util.Scanner;


public class ReverseTest {

  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);
    StringBuilder builder = new StringBuilder();
    builder.append(scanner.nextLine()).reverse();
    System.out.println(builder.toString());
  }

}
